package srx.open.com.adapter;

import android.content.Context;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.ArrayList;

public class TabPageAdapter extends FragmentPagerAdapter {

	private ArrayList<Fragment> mFragmentList;
	private Context mContext;

	public TabPageAdapter(FragmentManager fm, Context context,
			ArrayList<Fragment> fragmentList) {
		super(fm);
		mContext = context;
		mFragmentList = fragmentList;
	}

	@Override
	public int getCount() {
		return mFragmentList.size();
	}

	@Override
	public Fragment getItem(int item) {
		return mFragmentList.get(item);
	}
	
}
